package cn.ymatou.admin.falcon.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;

import cn.ymatou.admin.falcon.parameter.SaveAlarmConfigBean;
import cn.ymatou.admin.falcon.service.SaveAlarmConfigCall;
/**
*保存配置
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_SaveAlarmConfig{
	private static SaveAlarmConfigBean savealarmconfigBean;
	private static SaveAlarmConfigCall savealarmconfigCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("保存配置");
	}

	@Before
	public void caseUp() {
		savealarmconfigBean=new SaveAlarmConfigBean();
		savealarmconfigCall=new SaveAlarmConfigCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(savealarmconfigCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_SaveAlarmConfig_001() {
		Logger.start(true,"保存");
		try {
			//TODO 补全case代码
			org.junit.Assert.fail();
			savealarmconfigCall.setData(savealarmconfigBean);
			savealarmconfigCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}